import request from '../utils/request'

/**
 * 查询登录用户的服务端购物车数据
 * @returns 
 */
export const getServerCart = () => request.get('/api/carts')

export const setServerCart = (cart) =>request({
    url: '/api/carts',
    method: 'PUT',
    data: {
        cart,
    }
})